package com.wky.book;

import lombok.extern.slf4j.Slf4j;
import org.junit.FixMethodOrder;
import org.junit.Test;
import org.junit.jupiter.api.Order;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

/**
 * @author 王立朝
 * @date 2023/10/18
 * @description:
 */
@Slf4j
@SpringBootTest
@RunWith(SpringRunner.class)
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
public class MyTestDemo {

	@Test
	@Order(1)
	public void test01(){
		log.info("test01");
	}

	@Test
	@Order(33)
	public void test02(){
		log.info("test02");
	}
	@Test
	@Order(2)
	public void test03(){
		log.info("test03");
	}
}
